##
## Makefile for makefile in /home/boulah_m//jour_11
##
## Made by moustafa boulahia
## Login   <boulah_m@epitech.net>
##
## Started on  Mon Oct 24 09:03:57 2011 moustafa boulahia
## Last update Wed Feb 22 08:35:31 2012 moustafa boulahia
##
LIB=	libmy.a

RM=	rm -f

CFLAGS += -Wall -Werror -pedantic

SRC=	my_getnbr.c\
	my_isneg.c\
	my_power_rec.c\
	my_putchar.c\
	my_putnbr.c\
	my_putnbr_base.c\
	my_putstr.c\
	my_revstr.c\
	my_strcpy.c\
	my_strdup.c\
	my_strlen.c\
	my_strncpy.c\
	my_swap.c\
	printf.c\
	flags.c\
	my_get_snbr.c\
	my_strcmp.c\
	my_strncmp.c\
	my_strcat.c\
	my_str_to_wordtab.c\
	my_putchar_fd.c\
	my_putnbr_base_fd.c\
	x_write.c

OBJ=	$(SRC:.c=.o)

all:	$(OBJ)
	cc -Wall -Werror -pedantic -c $(SRC)
	ar rc $(LIB) $(OBJ)
	ranlib $(LIB)

clean:
	@$(RM) $(OBJ)
fclean: clean
	@$(RM) $(LIB)
re: fclean all